I keep getting this error while trying to use the field 'ID' to pass in a u=
rl.. And it's odd because the query is pulling everything BUT the ID which =
is the first field...
Miller, Terion wrote:
> I keep getting this error while trying to use the field 'ID' to pass in a url.. And it's odd because the query is pulling everything BUT the ID which is the first field...
>
> code:
>
I keep getting this error while trying to use the field 'ID' to pass in a u=
rl.. And it's odd because the query is pulling everything BUT the ID which =
is the first field...
>
// Control logic to determine if displaying results or not=
if(isset($_SESSION['results'])) =
{ // Output results =
if($_SESSION['results'] == "=
No results found") { =
// Query came back with nothing ?> =
NT SIZE=3D"-2">
tList']['ID']?>">
staurantList'][$i]['name'])); ?>
=
antList'][$i]['address']); ?>
=
'][$i]['inDate']); ?>
T SIZE=3D"-2">
inType']); ?>
=3D"-2">
]); ?>
ONT SIZE=3D"-2">
['critical']); ?>
IZE=3D"-2">
olations']); ?>
=3D"center">
rantList'][$i]['noncritical']); ?> =
=
} ?> =
// Calculate total number of pages =
$TotalPages =3D ceil($_SESSION['totalNumberOfRestaur=
ants']/$PerPage); =
} =
// Output paging control // Only need =
to output this if there is more than 1 page of results =
if ($TotalPages > 1) { =
echo " \n
Click on the fo=
llowing links for more pages of results
\n
"; =
if ($Page !=3D 1) =
{ // If on first page, no need for =
Previous Page button echo "
rants.php?Page=3D"; echo $Page-1; =
echo "'><< Previous "; =
} for($i =3D=
1; $i <=3D $TotalPages; $i++) { =
if($i == $Page) =
{ // Outputting =
link for current page - doesn't need to be a link =
echo "$i "; } =
else { =
// Outputting link for other pages - needs to be a link =
echo " "; =
} =
} =
if ($Page !=3D $TotalPages) { =
// If on last page, no need for Next Page button =
echo "
echo $Page+1; echo "'>=
Next >> "; } =
} =
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php